<%--
	author:chengd
	time:2012/6/30 16:16:11
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
<style type="text/css">
label.error { color:#F00; }
</style>
<script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar/date.js"></script>
<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
			acc_period:{
				required: true
			},
			cash_dep_code:{
				required: true
			},
			cash_date:{
				required: true
			},
			custom_code:{
				required: true
			},
			cash_type:{
				required: true
			},
			cash_money:{
				required: true,
				number : true
			},
			sell_line_code:{
				required: true
			}
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
	selectDateMonth($("#acc_period_panel"), $("#acc_period"));
});
_callback = function() {
	location.href = ctx + "/manage/finance/getSellWarrant.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">销售收款单添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getSellWarrant.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addSellWarrant2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">核算期：</td>
		<td class="form_input"><input type="hidden" id="acc_period" name="acc_period" value="${fn:escapeXml(param.acc_period)}" /><div id="acc_period_panel" style="width:120px; float:left;"></div></td>
	</tr>
	<tr>
		<td class="form_title">收款部门：</td>
		<td class="form_input"><input type="text" id="cash_dep_code" name="cash_dep_code" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">收款日期：</td>
		<td class="form_input"><input type="text" id="cash_date" name="cash_date" value="" readonly="readonly" class="Wdate" onFocus="WdatePicker({isShowWeek:true})" /></td>
	</tr>
	<tr>
		<td class="form_title">客户编号：</td>
		<td class="form_input"><input type="text" id="custom_code" name="custom_code" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">收款类别：</td>
		<td class="form_input"><input type="text" id="cash_type" name="cash_type" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">收款金额：</td>
		<td class="form_input"><input type="text" id="cash_money" name="cash_money" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">销售业务线路：</td>
		<td class="form_input"><input type="text" id="sell_line_code" name="sell_line_code" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">摘要说明：</td>
		<td class="form_input"><input type="text" id="remark" name="remark" value="" /></td>
	</tr>
</table>
</form>
</body>
</html>
